function [PV_Structure] = Pull_Out_PV_Single_Session(Data_Summary, Row_Number)

% pull out the PV values first (with the appropriate rotation angle)
PV = Data_Summary(Row_Number).PV_Corr_Values;
PV_rotation = Data_Summary(Row_Number).PV_Corr_Coherent_Rot;
rotation_index = (PV_rotation/90)+1;
PV_values = PV(:,:,rotation_index);
PV_values(isnan(PV_values)) = [];
PV_values = PV_values(:);

% make a structure that summarizes useful experimental conditions
PV_Structure_Original = struct(...
    'session', Row_Number,...
    'genotype', Data_Summary(Row_Number).genotype,...
    'animal_ID', Data_Summary(Row_Number).animalName,...
    'expt_date', Data_Summary(Row_Number).dateToFind,...
    'drug', Data_Summary(Row_Number).drug,...
    'session1_dose', Data_Summary(Row_Number).session1_dose,...
    'session2_dose', Data_Summary(Row_Number).session2_dose,...
    'exptParadigm', Data_Summary(Row_Number).exptParadigm,...
    'session1_mobility_pass', Data_Summary(Row_Number).Mobility_Session1_Pass,...
    'session2_mobility_pass', Data_Summary(Row_Number).Mobility_Session2_Pass);
PV_Structure = PV_Structure_Original;

% duplicate this structure for N times, where N is the number of non-NAN PV correlation values in
% that session
for n = 1:(size(PV_values,1)-1)
    PV_Structure = cat(1, PV_Structure, PV_Structure_Original);
end

% Now put all PV values into that structure
for n = 1:size(PV_Structure,1)
    PV_Structure(n).PV_values = PV_values(n,1);
end


end